-- GENERATED SPELL FOR [Azure Ley-Whelp] --


function spell0_27636(pUnit, Event) --@Arcane Bolt,n/a--
pUnit:FullCastSpellOnTarget(50705,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27636', 1500, 1)
end

function spell1_27636(pUnit, Event) --@Arcane Bolt,n/a--
pUnit:FullCastSpellOnTarget(59210,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27636', 1500, 1)
end

function Sorts_27636(pUnit, Event)
local choix_sorts_27636 = math.random(0, 1)
if choix_sorts_27636 == 0 then
pUnit:RegisterEvent('spell0_27636', 1, 1)
end
if choix_sorts_27636 == 1 then
pUnit:RegisterEvent('spell1_27636', 1, 1)
end
end

function mob27636_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27636', math.random(1500, 3000), 1)
end

function mob27636_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27636_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27636_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27636, 1, 'mob27636_Action')
RegisterUnitEvent(27636, 2, 'mob27636_Leave')
RegisterUnitEvent(27636, 3, 'mob27636_Kill')
RegisterUnitEvent(27636, 4, 'mob27636_Die')
